package cn.wolfcode.wolf2w.service;

import cn.wolfcode.wolf2w.domain.StrategyComment;
import cn.wolfcode.wolf2w.domain.UserInfo;
import cn.wolfcode.wolf2w.query.StrategyCommentQuery;
import org.springframework.data.domain.Page;

import java.util.List;

public interface IStrategyCommentService {
    void insert(StrategyComment strategyComment);

    void delete(String id);

    void update(StrategyComment strategyComment);

    StrategyComment findById(String id);

    List<StrategyComment> findAll();

    /**
     * 增加评论
     * @param strategyComment
     * @param userInfo
     */
    void addComment(StrategyComment strategyComment, UserInfo userInfo);

    /**
     * 评论分页
     * @param qo
     * @return
     */
    Page query(StrategyCommentQuery qo);

    /**
     * [评论点赞
     * @param cid
     * @param uid
     */
    void commentThumb(String cid, String uid);
}